-- GENERATED SPELL FOR [Howling Wolvar Trainer] --


function spell0_26823(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(31290,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26823', 3336, 1)
end

function spell1_26823(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26823', 5264, 1)
end

function spell2_26823(pUnit, Event) --@Quick Feet,Self--
pUnit:FullCastSpellOnTarget(50054,pUnit)
pUnit:RegisterEvent('Sorts_26823', 5270, 1)
end

function spell3_26823(pUnit, Event) --@Wolvar Net,n/a--
pUnit:FullCastSpellOnTarget(49453,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26823', 6326, 1)
end

function Sorts_26823(pUnit, Event)
local choix_sorts_26823 = math.random(0, 3)
if choix_sorts_26823 == 0 then
pUnit:RegisterEvent('spell0_26823', 1, 1)
end
if choix_sorts_26823 == 1 then
pUnit:RegisterEvent('spell1_26823', 1, 1)
end
if choix_sorts_26823 == 2 then
pUnit:RegisterEvent('spell2_26823', 1, 1)
end
if choix_sorts_26823 == 3 then
pUnit:RegisterEvent('spell3_26823', 1, 1)
end
end

function mob26823_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26823', math.random(1500, 3000), 1)
end

function mob26823_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26823_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26823_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26823, 1, 'mob26823_Action')
RegisterUnitEvent(26823, 2, 'mob26823_Leave')
RegisterUnitEvent(26823, 3, 'mob26823_Kill')
RegisterUnitEvent(26823, 4, 'mob26823_Die')
